import { createRouter, createWebHashHistory } from "vue-router";

const routes = [
    {
        path: "/",
        redirect: "/home"
    },
    {
        path: "/home",
        component: () => import("@/views/home/index.vue")
    },
    {
        path: "/matter",
        component: () => import("@/views/matter/index.vue")
    },
    {
        path: "/map",
        component: () => import("@/views/map/index.vue")
    },
    {
        path: "/pys",
        component: () => import("@/views/pys/index.vue")
    },
    {
        path: "/:catchAll(.*)",
        component: () => import("@/views/404/index.vue")
    }
];

const router = createRouter({
    routes,
    history: createWebHashHistory()
});

export default router;
